use ieee.electrical_system.all;
use ieee.std_logic_1164.all;
entity switch is
    generic (	ron : real := 0.1; -- on resistance
		roff : real := 1.0e6;    -- off resistance
	     	ton : real := 1.0e-6;	 -- turn on time
	     	toff : real := 1.0e-6);	 -- turn off time
    port (
	d : in std_logic;
	terminal p,m : electrical);
end entity switch;